package com.sdry.product.waitingarea.service;

import com.sdry.basic.entity.Material;
import com.sdry.product.prod.entity.ResultAppList;
import com.sdry.product.waitingarea.entity.ChoicePlan;
import com.sdry.product.waitingarea.entity.StayContainerStare;

import java.util.List;

/**
 * @Description 备货计划
 * @Author chenBin
 * @Date 2020-03-27 14:48
 * @Version 1.0
 **/
public interface StayContainerStareService {

    /**
     * 成品库或者成品链库存
     * @param type 类型
     * @return List<ResultAppList<Material>>
     */
    List<ResultAppList<Material>> queryProductContainer(String type);

    /**
     * 库存是否存在
     * @param number
     * @return
     */
    boolean verificationNumber(String number);

    /**
     * 绑定提交
     * @param json 数据
     * @param userId 用户id
     * @param s
     */
    void addStayContainerStare(String json, String userId, String s);

    /**
     * 分页库存
     * @param stayContainerStare
     * @return
     */
    List<StayContainerStare> queryStayContainerStarePage(StayContainerStare stayContainerStare);

    /**
     * 总数
     * @param stayContainerStare
     * @return
     */
    Long queryStayContainerStareTotal(StayContainerStare stayContainerStare);

    /**
     * 备货计划添加
     * @param quantity 数量
     * @param maIds 产品编号
     * @param remark1 时间
     * @return
     */
    boolean addChoicePlan(String quantity, String maIds, String remark1, String plNumber);

    /**
     * 备货计划
     * @param stayContainerStare
     * @return
     */
    List<ChoicePlan> queryAddChoicePlanPage(StayContainerStare stayContainerStare);

    /**
     * 备货计划
     * @param stayContainerStare
     * @return
     */
    Long queryAddChoicePlanTotal(StayContainerStare stayContainerStare);

    /**
     * 删除备货
     * @param plDeId
     * @return
     */
    Integer deleteStayContainerStare(Long plDeId);
}
